home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club (Business) 1998 January / Software of the Month Club - Business Shareware (Volume 245) (January 1998).iso / dos / utility / imaster / imscanm.bat < prev    next >
DOS Batch File  |  1997-02-27  |  448b  |  23 lines

  1. ECHO OFF
  2. IF "%1"=="" goto help
  3. IM /D%1 /VM /NE /b %2 %3 %4
  4. IF ERRORLEVEL 128 GOTO FAILURE
  5. IF ERRORLEVEL 64 GOTO VIRUS
  6. IF NOT ERRORLEVEL 24 GOTO DONE
  7. ECHO IM found a possible problem
  8. GOTO DONE
  9. :Help
  10. ECHO  
  11. ECHO The syntax is "IMSCANM A:
  12. ECHO   where A: is the drive you wish to scan.
  13. ECHO  
  14. GOTO Exit
  15. :Failure
  16. ECHO IM unable to execute
  17. GOTO EXIT
  18. :VIRUS
  19. ECHO IM found signs of a virus
  20. :DONE
  21. ECHO IM asked to scan disk: %1
  22. :EXIT
  23.